import {designPage} from 'plain-design-composition';
import {useTableOption} from "../../../module/useTableOption";
import {AutoTable, Plc, PlcDate} from "../../../../packages";

export const demo1 = designPage(() => {

  const option = useTableOption({
    url: '/upload',
    fill: true,
    permit: {
      show: {
        insert: false,
        update: false,
      },
    }
  });

  return () => <>
    <AutoTable option={option}>
      <Plc title="文件名称" field="name" width={200}/>
      <PlcDate title="上传时间" field="createdAt" width={200}/>
      <Plc title="文件地址" field="path"/>
    </AutoTable>
  </>;

});
